package com.family.logintips;

import com.wu.family.alarm.AlarmBootReceiver;
import com.wu.family.alarm.StaticKeyguardLock;
import com.wu.family.model.AlarmModel;
import com.wu.family.space.screensaver.AlarmAlertWakeLock;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.widget.Toast;

public class AlarmLoginTipsReceiver extends BroadcastReceiver {
	
	@Override
	public void onReceive(Context context, Intent intent) {
//		Intent serviceIntent = new Intent(context, 
//				AlarmBootReceiver.class);
//		context.sendBroadcast(serviceIntent, null);
//		
//		Log.d(this.getClass().getSimpleName(),"start dialog");
//		//StaticWakeLock.lockOn(context);
//		AlarmAlertWakeLock.acquire(context);
//		StaticKeyguardLock.disabledKeyguard(context);
//		Bundle bundle = intent.getExtras();
//		final AlarmModel alarm = (AlarmModel) bundle.getSerializable("alarm");
//		Intent mIntent = new Intent(context, AlarmLoginTipsActivity.class);
//		mIntent.putExtra("alarm", alarm);
//		mIntent.putExtra("isTime", true);
//		mIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
//		context.startActivity(mIntent);
	}

}
